﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ObTookit
{
    public partial class FormAbout : Form
    {
        int clkCnt = 0;
        public FormAbout()
        {
            InitializeComponent();
        }

        private void FormAbout_Load(object sender, EventArgs e)
        {
            this.lbl_about_version.Text = "Ver.1.1 Build";// "Ver.1.0.beta"; //"Ver.1.0.alpha";
            this.lbl_descri.Text = "The Obsidian Framework Auto Code Toolkit.";
            this.lbl_about_copyright.Text = "Copyright@2016 by caideyuan.com";
        }

        private void lbl_about_version_Click(object sender, EventArgs e)
        {
            clkCnt += 1;
            if (clkCnt == 5)
            {
                this.lbl_about_version.Text = "(201604.)"; //"(201602.)";  // "(201512.)";
                clkCnt = 0;
            }
        }

        private void pbx_about_logo_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process.Start("http://www.caideyuan.com/");  
        }

        private void lbl_close_Click(object sender, EventArgs e)
        {
            try
            {
                this.Close();
                this.Dispose(true);
            }
            catch (Exception)
            {
                
                throw;
            }
        }
    }
}
